import { pubRequire } from '@utils/public'
const baseUrl = '/activities/votes/posts'
/* 投票维护获取列表 */
export function getSearchList(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callbBack, errBack)
}
/*投票帖子详情*/
export function getForm(id, params, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/${id}`, params, callbBack, errBack)
}
/*投票数量*/
export function submitPassAPI(id, params, callbBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${id}/vote-count`,
    params,
    callbBack,
    errBack
  )
}
